package fag.core.game.test.asteroids;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;

import fag.core.game.Camera;

@SuppressWarnings("serial")
public class AsteroidsCamera extends Camera {

	public boolean gameover = false;
	
	protected void drawHud(Graphics2D g) {
		if(gameover) {
			g.setColor(Color.RED);
			g.setFont(new Font("Arial", Font.BOLD, 50));
			String s = "Game Over";
			g.drawString(s, Asteroids.WIDTH / 2 - g.getFontMetrics().stringWidth(s) / 2, Asteroids.HEIGHT / 2 - 25);
			s = "<Press Enter>";
			g.drawString(s, Asteroids.WIDTH / 2 - g.getFontMetrics().stringWidth(s) / 2, Asteroids.HEIGHT / 2 + 30);
		}
	}
}
